# $Id: PKGBUILD 68013 2012-03-17 00:48:56Z giovanni $
# Maintainer:  Daenyth <Daenyth+Arch AT gmail DOT com>

pkgname=tremulous-data
pkgver=1.1.0
pkgrel=2
pkgdesc="Shared data files for Tremulous"
arch=('any')
url="http://tremulous.net/"
license=('GPL')
conflicts=('tremulous<=1.1.0-5')
source=("http://downloads.sourceforge.net/tremulous/tremulous-$pkgver.zip")
md5sums=('3df5f7565571fb9524656308347bce1b')

build() {
    # makepkg ftl
    return 0
}
package() {

  # Remove Junk from Game Directory
  rm $srcdir/tremulous/{CC,COPYING,ChangeLog,GPL,tremulous.{exe,x86,xpm},tremded.x86}

  # Remove the sources
  rm $srcdir/tremulous/tremulous-$pkgver-src.tar.gz

  # Install game data
  install -dm755 $pkgdir/opt/
  cp -r $srcdir/tremulous/ $pkgdir/opt/
  find $pkgdir -type f -exec chmod 644 {} +
}
